import { customTable } from "@/components/ProTable/interface";

export interface basicGridProps extends customTable {
  key: string; // 表格标识
  requestApi: string; // 请求api
  requestAuto: boolean; //是否自动请求
  pagination: boolean; //是否分页
  showSummary: boolean; //是否显示合计行
  getSummary: string; // 字符串方法(自定义合并列)
  dataCallback: string; // 字符串方法(数据返回后处理)
  // 打开抽屉时获取参数调用的自定义方法
  getDrawerParams: (row: any, tableData: basicGridProps, refs: any, tableGather: any) => boolean;
}

/**
 * function:(item) => item.flagMerge === 0
 * mergeRow 合并方法
 * summationArr  对数组指定字段进行相加
 */
